//
//  InforProductCell.m
//  Pacific_Computer
//
//  Created by 范琦 on 14-12-29.
//  Copyright (c) 2014年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "InforProductCell.h"

@implementation InforProductCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.title = [[UILabel alloc]init];
        [self.contentView addSubview:self.title];
        [_title release];
        
        self.message = [[UILabel alloc]init];
        [self.contentView addSubview:self.message];
        [_message release];
        
        self.price = [[UILabel alloc]init];
        [self.contentView addSubview:self.price];
        [_price release];
        
        self.imageV = [[UIImageView alloc]init];
        [self.contentView addSubview:self.imageV];
        [_imageV release];
        
        
        
    }
    return self;
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    self.imageV.frame = CGRectMake(0, 0, self.contentView.bounds.size.width / 3, self.contentView.bounds.size.height);
    self.title.frame = CGRectMake(self.imageV.bounds.size.width + 5, 5, self.contentView.bounds.size.width * 2 / 3, self.bounds.size.height / 3);
    self.price.frame = CGRectMake(self.title.frame.origin.x, self.title.frame.origin.y + self.title.bounds.size.height, self.title.bounds.size.width, self.contentView.bounds.size.height / 4);
    
    self.message.frame = CGRectMake(self.price.frame.origin.x, self.price.frame.origin.y + self.price.bounds.size.height - 5, self.contentView.bounds.size.width * 2 / 3, self.bounds.size.height / 3);
    

}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
